package net.nampham.visioncontrol.model3d;

public class Vec3 {
	float x;
	float y;
	float z;
	public Vec3(float x, float y, float z){
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public Vec3 add(Vec3 other){
		return new Vec3(x+other.x, y+other.y, z+other.z);
	}
	
	public Vec3 dec(Vec3 other){
		return new Vec3(x-other.x, y - other.y, z - other.z);
	}
	
	public Vec3 mul(float scalar){
		return new Vec3(x*scalar, y* scalar, z*scalar);
	}
}
